home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Shout3Ddemo / S3D_2E1.exe / Shout3d_runtime / codebase / models / renderTests / lines_and_points_multiAppearance.wrl < prev    next >
Text File  |  2000-05-30  |  3KB  |  102 lines

  1. #VRML V2.0 utf8
  2.  
  3. # This group uses regular appearance nodesTransform {  translation -4 0 0
  4.   children    [
  5.     Shape {
  6.         appearance    Appearance {
  7.           material    Material {
  8.             emissiveColor    1 1 1
  9.           }
  10.         }
  11.  
  12.         geometry    PointSet {            pointSize 4
  13.           coord    Coordinate {
  14.             point    [ -1 -1 0, 1 -1 0, 1 1 0, -1 1 0 ]
  15.           }
  16.           color    Color {
  17.             color    [ 1 1 0, 1 0 1, 0 1 1, 1 0 0 ]
  18.           }
  19.         }    }    Shape {
  20.         appearance    Appearance {
  21.           material    Material {
  22.             emissiveColor    1 1 1
  23.           }
  24.         }
  25.  
  26.         geometry    IndexedLineSet {            pointSize 4
  27.           coord    Coordinate {
  28.             point    [ -1 -1 0, 1 -1 0, 1 1 0, -1 1 0 ]
  29.           }          coordIndex [ 0, 1, 2, 3, -2 ]
  30.           color    Color {
  31.             color    [ 1 1 0, 1 0 1, 0 1 1, 1 0 0 ]
  32.           }          
  33.         }    }    ]} 
  34.  
  35. # This group uses MultiAppearance nodes with no mapsTransform {  translation 0 0 0
  36.   children    [
  37.     Shape {
  38.         appearance    MultiAppearance {
  39.           material    Material {
  40.             emissiveColor    1 1 1
  41.           }
  42.         }
  43.  
  44.         geometry    PointSet {            pointSize 4
  45.           coord    Coordinate {
  46.             point    [ -1 -1 0, 1 -1 0, 1 1 0, -1 1 0 ]
  47.           }
  48.           color    Color {
  49.             color    [ 1 1 0, 1 0 1, 0 1 1, 1 0 0 ]
  50.           }
  51.         }    }    Shape {
  52.         appearance    MultiAppearance {
  53.           material    Material {
  54.             emissiveColor    1 1 1
  55.           }
  56.         }
  57.  
  58.         geometry    IndexedLineSet {            pointSize 4
  59.           coord    Coordinate {
  60.             point    [ -1 -1 0, 1 -1 0, 1 1 0, -1 1 0 ]
  61.           }          coordIndex [ 0, 1, 2, 3, -2 ]
  62.           color    Color {
  63.             color    [ 1 1 0, 1 0 1, 0 1 1, 1 0 0 ]
  64.           }          
  65.         }    }    ]} 
  66.  
  67. # This group uses MultiAppearance nodes with (extraneous) mapsTransform {  translation 4 0 0
  68.   children    [
  69.     Shape {
  70.         appearance    MultiAppearance {
  71.           material    Material {
  72.             emissiveColor    1 1 1
  73.           }          diffuseMap DiffuseMap { texture ImageTexture { url diffuse_s3d.jpg }}
  74.           bumpLevelMap BumpLevelMap { texture ImageTexture { url bumpmap_s3d.jpg }}
  75.         }
  76.  
  77.         geometry    PointSet {            pointSize 4
  78.           coord    Coordinate {
  79.             point    [ -1 -1 0, 1 -1 0, 1 1 0, -1 1 0 ]
  80.           }
  81.           color    Color {
  82.             color    [ 1 1 0, 1 0 1, 0 1 1, 1 0 0 ]
  83.           }
  84.         }    }    Shape {
  85.         appearance    MultiAppearance {
  86.           material    Material {
  87.             emissiveColor    1 1 1
  88.           }
  89.           diffuseMap DiffuseMap { texture ImageTexture { url diffuse_s3d.jpg }}
  90.           bumpLevelMap BumpLevelMap { texture ImageTexture { url bumpmap_s3d.jpg }}
  91.         }
  92.  
  93.         geometry    IndexedLineSet {            pointSize 4
  94.           coord    Coordinate {
  95.             point    [ -1 -1 0, 1 -1 0, 1 1 0, -1 1 0 ]
  96.           }          coordIndex [ 0, 1, 2, 3, -2 ]
  97.           color    Color {
  98.             color    [ 1 1 0, 1 0 1, 0 1 1, 1 0 0 ]
  99.           }          
  100.         }    }    ]}
  101.  
  102.